package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author oxiny
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@TableName("d_dist_user")
public class DistUser extends Model<DistUser> {
    @ApiModelProperty("用户")
    @TableId(type = IdType.INPUT)
    private Integer userId;

    @ApiModelProperty("分享码")
    private String code;

    @ApiModelProperty("分销组")
    private Integer distGroupId;

    @ApiModelProperty("父级分销员")
    private Integer parentId;

    private Integer createId;

    private Date createTime;

    private Integer updateId;

    private Date updateTime;
}
